using System.Windows;
using Samurai.Client.DataContexts;

namespace Samurai.Client.Windows
{
    /// <summary>
    /// Interaction logic for RepositoryWindow.xaml
    /// </summary>
    public partial class RepositoryWindow : Window
    {
        public RepositoryWindow()
        {
            InitializeComponent();
            this.DataContext = RepositoryDataContext.Instance;
        }

        private void RepositoryTab_Loaded(object sender, RoutedEventArgs e)
        {
            ((ADataContext)((FrameworkElement)sender).DataContext).OnLoaded();
        }
    }
}
